/**
 * @date 9:20:53 AM
 * EducationQuestionResponse.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.beans;

import java.util.List;

import javax.persistence.JoinColumn;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.entity.EducationAnswer;
import com.qs.education.bean.entity.EducationHomeWorkQuestion;
import com.qs.education.bean.entity.EducationSubjectLesson;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @class EducationQuestionResponse	
 * @author Warren
 * @description
 * @date Nov 15, 2018 
 */
@Data
@EqualsAndHashCode(callSuper=true)
public class EducationQuestionResponse extends ResponseBean{
	private Long id;
	private String title;
	private String description;
	private String image;
	private String type;
	private Integer level;
	private Integer active;
	private Long correctCount;
	private Long errorCount;
	private String correctAnswer;
	private Long realeaseCount;
	
	@JsonIgnoreProperties(value = { "unit", "questionList" })
	private EducationSubjectLesson lesson;
	
	@JoinColumn(name = "question_id")
	private List<EducationAnswer> answerList;
	
	@JsonIgnoreProperties(value = { "question", "homework" })
	private List<EducationHomeWorkQuestion> homeWorkQuestionList;
}
